﻿<dxc:DXWindow x:Class="ChatApp.Client.DangKyNguoiDung"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
        xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
		xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        Title="DangKy" Height="489" Width="350"
        Closed="DXWindow_Closed" WindowStyle="ToolWindow" ResizeMode="NoResize" xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol">
    <dxc:DXWindow.Background>
        <ImageBrush ImageSource="/ChatApp.Client;component/Images/Untitled1.png" />
    </dxc:DXWindow.Background>
    <dxc:DXWindow.ContextMenu>
        <ContextMenu />
    </dxc:DXWindow.ContextMenu>
    <Window.Resources>
        <Style TargetType="{x:Type Label}">
            <Setter Property="VerticalAlignment" Value="Center" ></Setter>
            <Setter Property="Margin" Value="3,3" ></Setter>
        </Style>
        <Style TargetType="{x:Type dxe:TextEdit}">
            <Setter Property="Margin" Value="2,2" ></Setter>
        </Style>
        <Style TargetType="{x:Type dxe:PasswordBoxEdit}">
            <Setter Property="Margin" Value="2,2" ></Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10"></RowDefinition>
            <RowDefinition Height="70"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="60"></RowDefinition>
            <RowDefinition Height="102*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="308"></ColumnDefinition>
            <ColumnDefinition Width="20*" />
        </Grid.ColumnDefinitions>
        <Label Content="Tên tài khoản" Grid.Row="2" Height="27"  FontSize="14" FontWeight="DemiBold" Margin="11,5,29,34" Foreground="#B2E7F7" Grid.RowSpan="2" />
        <dxe:TextEdit Grid.Row="3" Grid.Column="0" Name="txtTaiKhoan" Height="30" Margin="13,1,17,3" FontSize="14" 
                      FontWeight="DemiBold" Validate="txtTaiKhoan_Validate" AllowNullInput="True" CausesValidation="False" InvalidValueBehavior="AllowLeaveEditor"/>
        <Label Content="Mật khẩu" Grid.Row="4" Name="label3" Height="27"  FontSize="14" FontWeight="DemiBold" Margin="11,4,29,33" Foreground="#B2E7F7" Grid.RowSpan="2" />
        <dxe:PasswordBoxEdit Grid.Row="5" Name="txtMatKhau" Margin="14,2,16,2" 
                     AllowNullInput="True" CausesValidation="False" InvalidValueBehavior="AllowLeaveEditor" Validate="txtMatKhau_Validate"/>
        <Label Content="Email" Grid.Row="6" Height="27"  FontSize="14" FontWeight="DemiBold" Margin="11,5,34,33" Foreground="#B2E7F7" Grid.RowSpan="2" />
        <dxe:TextEdit Grid.Row="7" Name="txtEmail" Margin="14,2" FontSize="14" FontWeight="DemiBold"/>
        <Button Name="btnDangKy" Grid.Row="8" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="109" Height="30" FontSize="14" Margin="14,0,0,0" Background="#FFCBDEFC" BorderBrush="{x:Null}" Foreground="#9B000000"  OpacityMask="{x:Null}" Click="btnDangKy_Click">Đăng ký</Button>
        <Button Name="btnDong" Grid.Row="8" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="156" Height="30" FontSize="14" Margin="0,0,14,0" Background="#FFCBDEFC" BorderBrush="{x:Null}" Foreground="#9B000000"  OpacityMask="{x:Null}" Click="btnDong_Click">Trở về đăng nhập</Button>
        <Label Content="        Đăng ký người dùng" HorizontalAlignment="Stretch" VerticalAlignment="Top" Background="White" FontSize="20" FontWeight="Bold" Foreground="#00AFF0" Height="48" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,0,0,0" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" />
        <Image Grid.Row="1" Height="48" HorizontalAlignment="Left" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="47" Source="/ChatApp.Client;component/Images/Untitled2.png" />
    </Grid>
</dxc:DXWindow>
